<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<div id="login">
       	  <table>
            <tr>
  				<td>id</td>
				<td>图片</td>
				<td>主题</td>
				<td>内容</td>
				<td>医生</td>
 			</tr>
			 <c:forEach items="${pageknowledge.list }" var="user">
			  <tr>
			  <td>${user.id}</td>
			  <td>${user.img}</td>
			  <td>${user.title}</td>
			  <td>${user.content}</td>
			  <td>${user.doctor}</td>
			<%--   <td>${user.email}</td> --%>
			  <td><a href="delknowledge/${user.title}">删除</a></td>
			   <td><a href="selectknowledge/${user.title}">修改</a></td>
			  </tr>
			</c:forEach>
			 
       	 </table>
       	  </div>
       	 <tr style="text-align=center">
			<td colsapn="3">
			<a href="selalluser?pageNum=1">首页</a>
			<a href="selalluser?pageNum=${pageknowledge.prePageNum }">上一页</a>
			<a href="selalluser?pageNum=${pageknowledge.nextPageNum }">下一页</a>
			<a href="selalluser?pageNum=${pageknowledge.totalPageNum }">尾页</a>
			一共有${pageknowledge.totalCount}条数据,当前是${pageknowledge.pageNum }页
		</tr>
</body>
</html>